package com.ibeetl.admin.console.web.query;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;

public class RechargeQuery extends PageParam {

	@Query(name="用户ID",display=true)
	private String openId;
	
	@Query(name="用户昵称",display=true,fuzzy=true)
	private String nickName;

	@Query(name="直荐ID",display=true)
	private String shareId;
	
	@Query(name="转荐ID",display=true)
	private String pshareId;
	
	//支付时间
	@Query(name="创建时间",display=true,type=Query.TYPE_DATE_BETWEEN)
	private String createTimeRange;
	private Date createTimeMin;
	private Date createTimeMax;


    public String getCreateTimeRange() {
		return createTimeRange;
	}
    
	public void setCreateTimeRange(String createTimeRange) {
		this.createTimeRange = createTimeRange;
		if(StringUtils.isEmpty(createTimeRange)) {
			return ;
		}
		Date[] ds = Tool.parseDataRange(createTimeRange);
		this.createTimeMin=ds[0];
		this.createTimeMax =ds[1];
	}
	
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getShareId() {
		return shareId;
	}
	public void setShareId(String shareId) {
		this.shareId = shareId;
	}
	public String getPshareId() {
		return pshareId;
	}
	public void setPshareId(String pshareId) {
		this.pshareId = pshareId;
	}
	public Date getCreateTimeMin() {
		return createTimeMin;
	}
	public void setCreateTimeMin(Date createTimeMin) {
		this.createTimeMin = createTimeMin;
	}
	public Date getCreateTimeMax() {
		return createTimeMax;
	}
	public void setCreateTimeMax(Date createTimeMax) {
		this.createTimeMax = createTimeMax;
	}

}
